﻿using System.Windows;
using System.Windows.Controls;

namespace HSS.Interlink.Client.SL5.TestApp
{
	public partial class MainPageWithDialog : UserControl
	{
		public MainPageWithDialog()
		{
			InitializeComponent();
		}

		private void Button_Click(object sender, RoutedEventArgs e)
		{
			var dlg = new CustomUploadDialog();
			dlg.Show();
		}

		private void Button_Click_1(object sender, RoutedEventArgs e)
		{
			var dialog = new OpenFileDialog();
			dialog.Multiselect = true;
			if (dialog.ShowDialog() == true)
			{
				var dlg = new CustomUploadDialog(dialog.Files);
				dlg.Show();
			}
		}

		private void btnDownload_Click(object sender, RoutedEventArgs e)
		{
			HSS.Interlink.DownloadClient.OpenFileInline("2012-Chevrolet-Corvette-2.jpg");
		}
	}
}
